<?php
include('config.php');
$id = isset($_POST['id']) ? $_POST['id'] : '';
$rs = $mysql->selectlist("stock_goods_log","stock_goods_id='{$id}'");
$number_id = $rs[0]['number_id'];
$where = " stock_goods_id = '{$id}'";
$where1 = " number_id = '{$number_id}'";
$result = $mysql->delete('stock_goods_log',$where);
$resu = $mysql->delete('stock',$where1);
if($result && $resu){
	echo "1";
}else{
	echo "0";
}
